/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package escom.ipn.modelo.facade;

import escom.ipn.modelo.dao.Cat_Fin_IncidenteDAO;
import escom.ipn.modelo.dto.Cat_Fin_Incidente;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Daniel
 */
public class Cat_Fin_IncidenteFacade {
    private Connection cnn;
    private Cat_Fin_IncidenteDAO dao;
    
    public Cat_Fin_IncidenteFacade (Connection cnn){
        this.cnn = cnn;
        dao = new Cat_Fin_IncidenteDAO();
    }
    
    public List listarCatalogoFinIncidentes() throws SQLException{
        return dao.loadCatalogoFinIncidentes(cnn);
    }
    
    public Cat_Fin_Incidente leerIdCatalogoFinIncidente(Cat_Fin_Incidente a)
            throws SQLException{
        return dao.loadIdCatalogoFinIncidente(a, cnn);
    }
}
